#include "heart_task.h"
 
TaskHandle_t heartHandler;


//用来去书写心跳需要外设进行初始化
void init_heart(){
    ledInit();
}

void heart_task(void * param){
    while (1)
    {
        LED0=!LED0;
        vTaskDelay(2000);
    }
    
}

//创建心跳任务
void createHeartTask(){
    xTaskCreate(
        heart_task,
        "heart_task",
        128,
        NULL,
        2,
        &heartHandler
    );
}
